<template>
  <div class="detail">
    <header>
      <el-icon color="#fff" @click="$back()" size="18">
        <ArrowLeftBold />
      </el-icon>
      <NuxtImg src="/img/kefu.png" alt="" />
    </header>
    <div class="main">
      <AppSkeleton :loading="loading">
        <template #ske>
          <div style="width: 100%">
            <el-skeleton-item variant="image" style="width: 100%; height: 145px; margin: 0px 0 20px 0" />
            <el-skeleton-item variant="text" style="width: 100%; height: 15px; margin: 0px 0 10px 0" />
            <el-skeleton-item variant="text" style="width: 35%; height: 15px; margin-bottom: 10px" />
            <el-skeleton-item variant="text" style="width: 100%; height: 15px; margin: 0px 0 10px 0" />
            <el-skeleton-item variant="text" style="width: 35%; height: 15px; margin-bottom: 20px" />
            <el-skeleton-item variant="text" style="width: 100%; height: 15px; margin: 0px 0 10px 0" />
            <el-skeleton-item variant="text" style="width: 35%; height: 15px; margin-bottom: 20px" />
            <el-skeleton-item variant="text" style="width: 100%; height: 15px; margin: 0px 0 10px 0" />
            <el-skeleton-item variant="text" style="width: 100%; height: 15px; margin: 0px 0 10px 0" />
            <el-skeleton-item variant="text" style="width: 35%; height: 15px; margin-bottom: 20px" />
            <el-skeleton-item variant="text" style="width: 100%; height: 15px; margin: 0px 0 10px 0" />
            <el-skeleton-item variant="text" style="width: 100%; height: 15px; margin: 0px 0 10px 0" />
            <el-skeleton-item variant="text" style="width: 35%; height: 15px; margin-bottom: 20px" />
            <el-skeleton-item variant="text" style="width: 100%; height: 15px; margin: 0px 0 10px 0" />
            <el-skeleton-item variant="text" style="width: 80%; height: 15px; margin: 0px 0 10px 0" />
            <el-skeleton-item variant="text" style="width: 100%; height: 15px; margin: 0px 0 10px 0" />
            <el-skeleton-item variant="text" style="width: 40%; height: 15px; margin: 0px 0 10px 0" />
          </div>
        </template>
        <template #main>
          <NuxtImg src="/img/h6.jpg" alt="" />
          <div class="text">
            <h3>Telegram:https://t.me/worldgaming779_grupo</h3>
            <h3>Facebook:https://www.facebook.com/worldgaming777/</h3>
            <div>
              <p>1. Activity content</p>
              <p>
                New event is online! ! ! Everyone can become a gaming agent! One
                invitation, lifetime profits, endless bonuses. Join as an agent
                and withdraw money immediately.
              </p>
            </div>
            <div>
              <p>2. Participation methods</p>
              <p>Copy your game link - share it with your friends</p>
            </div>
            <div>
              <p>3. Activity details</p>
              <p>
                1. The first-level rebate is 3%, the second-level rebate is 2%,
                and the third-level rebate is 1%. The system automatically settles
                the commission;
              </p>
              <p>
                2. If you have any objections, the consultation results of
                Worldgaming shall prevail; if you forget your member
                account/password, please contact the "official customer service"
                to help you retrieve your account information;
              </p>
              <p>
                3. It is prohibited to register multiple accounts with the same
                IP; it is prohibited to rent accounts, use plug-ins, robots, use
                protocols, loopholes, interfaces, group control or other
                technologies to participate in games; otherwise, the platform has
                the right to prohibit members from logging in without prior
                notice. , suspend the use of this website, confiscate bonuses and
                bonuses obtained abnormally;
              </p>
              <p>
                4. To avoid text differences, Worldgaming reserves the right to
                change, stop or cancel this event at any time.
              </p>
            </div>
          </div>
          <div class="btn">Join Now</div>
        </template>
      </AppSkeleton>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref, nextTick, onMounted } from "vue";
import { ArrowLeftBold } from '@element-plus/icons-vue'
let loading = shallowRef<boolean>(false);
onMounted(() => {
  nextTick(() => {
    // loading.value = false;
    let time = setInterval(() => {
      loading.value = false;
      clearInterval(time);
    }, 500);
  });
});

</script>

<style scoped lang="scss">
.detail{
  width: 100%;
  header {
  width: 100%;
  height: 45px;
  position: fixed;
  left: 0;
  top: 0;
  @include flex(row, space-between, center);
  background-color: rgb(36, 39, 43);
  padding: 0 20px;
  color: #fff;

  .el-icon {
    cursor: pointer;
  }

  img {
    width: 28px;
  }
}

.main {
  height: 100vh;
  width: 100%;
  padding: 65px 20px 300px;
  background-color: #1a1a1a;
  overflow-y: scroll;

  &::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  img {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .text {
    width: 100%;
    padding: 40px 20px 0;

    >h3 {
      color: #e60000;
      width: 100%;
      font-size: 16px;
      word-wrap: break-word;
    }

    div {
      color: #b5bac8;
      font-size: 18px;
      margin-top: 20px;
    }
  }

  .btn {
    width: 200px;
    color: #fff;
    position: fixed;
    height: 40px;
    line-height: 40px;
    text-align: center;
    left: 50%;
    background: #0a906c;
    margin-left: -100px;
    bottom: 30px;
    border-radius: 5px;
  }
}
}
</style>
